package org.feuyeux.pattern.behavioral.visitor;

import lombok.Builder;
import lombok.Setter;
import org.feuyeux.pattern.behavioral.mediator.Domo;
import org.feuyeux.pattern.behavioral.mediator.Uds;

@Builder
public class AtomicVisitor {

  @Setter
  private Uds uds;
  @Setter
  private Domo domo;

  public void accept(Uds uds, String message) {
    domo.receive(message);
  }

  public void accept(Domo domo, String message) {
    uds.receive(message);
  }
}
